package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 砍价信息
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2025-09-11
 */
@TableName("kanjia")
public class KanjiaEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;

	public KanjiaEntity() {
		
	}
	
	public KanjiaEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 创建时间
	 */
	@JsonFormat(locale="zh", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	@TableField(fill = FieldFill.INSERT)
	private Date addtime;

	/**
	 * 商品ID
	 */
	@NotNull(message = "商品ID不能为空")
	private Long shangpinid;
	
	/**
	 * 商品名称
	 */
	private String shangpinmingcheng;
	
	/**
	 * 原价
	 */
	private Float yuanjia;
	
	/**
	 * 砍价价格
	 */
	@NotNull(message = "砍价价格不能为空")
	private Float kanjiajia;
	
	/**
	 * 参考价格说明
	 */
	private String cankaojiage;
	
	/**
	 * 用户名
	 */
	private String yonghuming;
	
	/**
	 * 用户ID
	 */
	private Long yonghuid;
	
	/**
	 * 持书账号
	 */
	private String chiwuzhanghao;
	
	/**
	 * 状态
	 */
	private String status;
	
	/**
	 * 备注
	 */
	private String beizhu;

	/**
	 * 获取：主键id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置：主键id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取：创建时间
	 */
	public Date getAddtime() {
		return addtime;
	}

	/**
	 * 设置：创建时间
	 */
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	/**
	 * 获取：商品ID
	 */
	public Long getShangpinid() {
		return shangpinid;
	}

	/**
	 * 设置：商品ID
	 */
	public void setShangpinid(Long shangpinid) {
		this.shangpinid = shangpinid;
	}

	/**
	 * 获取：商品名称
	 */
	public String getShangpinmingcheng() {
		return shangpinmingcheng;
	}

	/**
	 * 设置：商品名称
	 */
	public void setShangpinmingcheng(String shangpinmingcheng) {
		this.shangpinmingcheng = shangpinmingcheng;
	}

	/**
	 * 获取：原价
	 */
	public Float getYuanjia() {
		return yuanjia;
	}

	/**
	 * 设置：原价
	 */
	public void setYuanjia(Float yuanjia) {
		this.yuanjia = yuanjia;
	}

	/**
	 * 获取：砍价价格
	 */
	public Float getKanjiajia() {
		return kanjiajia;
	}

	/**
	 * 设置：砍价价格
	 */
	public void setKanjiajia(Float kanjiajia) {
		this.kanjiajia = kanjiajia;
	}

	/**
	 * 获取：参考价格说明
	 */
	public String getCankaojiage() {
		return cankaojiage;
	}

	/**
	 * 设置：参考价格说明
	 */
	public void setCankaojiage(String cankaojiage) {
		this.cankaojiage = cankaojiage;
	}

	/**
	 * 获取：用户名
	 */
	public String getYonghuming() {
		return yonghuming;
	}

	/**
	 * 设置：用户名
	 */
	public void setYonghuming(String yonghuming) {
		this.yonghuming = yonghuming;
	}

	/**
	 * 获取：用户ID
	 */
	public Long getYonghuid() {
		return yonghuid;
	}

	/**
	 * 设置：用户ID
	 */
	public void setYonghuid(Long yonghuid) {
		this.yonghuid = yonghuid;
	}

	/**
	 * 获取：持书账号
	 */
	public String getChiwuzhanghao() {
		return chiwuzhanghao;
	}

	/**
	 * 设置：持书账号
	 */
	public void setChiwuzhanghao(String chiwuzhanghao) {
		this.chiwuzhanghao = chiwuzhanghao;
	}

	/**
	 * 获取：状态
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * 设置：状态
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 获取：备注
	 */
	public String getBeizhu() {
		return beizhu;
	}

	/**
	 * 设置：备注
	 */
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
} 